package concept.misc;

public class CompareLab
{
	static void doWrapperFloat()
	{
		Float f = Float.NaN;
		float ff = 1.4f;
		String s = "NaN";
		System.out.println(f);
		System.out.println(f==f);
		System.out.println(f==ff);
		System.out.println(f!=f);
		System.out.println(f!=ff);
		System.out.println(s.equals(f.toString()));
	}
	
	static void doPrimitiveFloat()
	{
		float f = Float.NaN;
		float ff = 1.4f;
		System.out.println(f);
		System.out.println(f==f);
		System.out.println(f==ff);
		System.out.println(f!=f);
		System.out.println(f!=ff);
	}
	
	public static void main(String[] args)
	{
		doWrapperFloat();
		doPrimitiveFloat();
	}

}
